class Images < ActiveRecord::Migration
  def up
    create_table :images do |t|
      t.timestamps

      t.binary :image_data, :null => false#long blobにしたい
      t.string :filename, :null => true
      t.integer :image_type, :null => false
      t.integer :maker, :null => true
      t.integer :production, :null => true
      t.text :remarks, :null => true
    end
  end

  def down
    drop_table :images
  end
end
